package com.jn.erp.web.api.student.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jn.erp.web.api.student.entity.StudentClass;
import com.jn.erp.web.api.student.entity.dto.StudentClassDto;
import com.jn.erp.web.api.student.entity.dto.StudentClassListExcalDto;
import com.jn.erp.web.api.student.entity.dto.StudentListDto;
import com.jn.erp.web.api.student.entity.vo.StudentClassVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface StudentClassMapper extends BaseMapper<StudentClass> {

    List<StudentClassDto> classList(StudentClassVo studentClassVo);

    int insertBatch(   List<StudentClass> studentClasses);

    List<StudentListDto> studentCourseList(StudentClassVo studentClassVo);

    List<StudentClassListExcalDto>  exportClassList(StudentClassVo studentClassVo);

    List<StudentListDto> studentList(StudentClassVo studentClassVo);

    List<StudentClass> classCourseList(@Param("tClass") StudentClass tClass);
}